package com.tang.websocket.j2ee;

import com.tang.websocket.domain.User;
import lombok.extern.slf4j.Slf4j;

import javax.websocket.MessageHandler;

/**
 * @author Tang
 * @classname MyMessageHandler
 * @description [  ]
 * @date 2022/11/25 16:09
 */
@Slf4j
public class MyMessageHandler implements MessageHandler.Whole<User> {

    @Override
    public void onMessage(User message) {
        log.info("MyMessageHandler..." + message.toString());
    }
}
